/*
 * ===================================================
 *
 *       Filename:  fixed_point.h
 *
 *       Version:  1.0
 *       Created:  10/18/2011 07:13:44 PM
 *       Compiler:  gcc
 *
 *       Author:  durand_y, <yoan.durand@gmail.com>
 *
 * ===================================================
 */
#ifndef FIXED_POINT_H_
# define FIXED_POINT_H_

# include "utils.h"
# include "constants.h"

/**
** @fn int fp_mul(int a,int b);
** @return int
** @brief This function multiplie.
*/
int     fp_mul(int      a,
               int      b);
/**
** @fn int fp_div(int a,int b);
** @return int
** @brief This function divise.
*/
int     fp_div(int      a,
               int      b);
/**
** @fn int fp_sin(int      x);
** @return int
** @brief This function calcul sin.
*/
int     fp_sin(int      x);

/**
** @fn int fp_cos(int      x);
** @return int
** @brief This function calcul cos.
*/
int     fp_cos(int      x);

/**
** @fn int fp_pow(int a,int b);
** @return int
** @brief This function pow.
*/
int     fp_pow(int      a,
               int      b);
/**
** @fn int     int_to_fp(int   x);
** @return int
** @brief This function .
*/
int     int_to_fp(int   x);

/**
** @fn void    fp_print(int    x);
** @return void
** @brief This function print.
*/
void    fp_print(int    x);

#endif /* !FIXED_POINT_H_ */
